Repository navigation
fix(cms): stop reusing the Turbopack build cache across Vercel deploys - #264
Conversation
Next 16.3 turns on turbopackFileSystemCacheForBuild by default, and Vercel restores .next/cache from the previous deployment. The production build of daf914b reused that cache and shipped the pre-redesign styles.css (old :root and @theme), so every redesign spacing token (pt-sectionTop, gap-gridGap, mb-sectionGap, min-h-header...) compiled to nothing. A redeploy without build cache produced the correct CSS. Scope: apps/cms next.config.mjs
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
🎉 This PR is included in version 3.1.0 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 2.11.1 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.3.0 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 0.13.1 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.7.2 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.0.2 🎉 The release is available on npm package (@latest dist-tag) Your semantic-release bot 📦🚀 |
What
apps/cmsno longer reuse the Turbopack filesystem cache that Vercel restores from the previous deployment.dpl_5y8UQTWxq54TQ6zyijp2EwMFD3Pe(commitdaf914b, "Restored build cache from previous deployment") shipped the pre-redesignapps/cms/src/app/(frontend)/styles.cssmerged with the newbase.css.dpl_3xGAPRYNr8ouqmFyPAr4rRYzJ45H, now live) produced correct CSS, so production is already fixed; this PR stops it from coming back.Demo
No before screenshot: the broken deployment is behind Vercel Deployment Protection, and getting past it would mean creating a bypass secret on the project.
Measured on production at 1440px, cards section ("What's inside"):
Decisions
experimental.turbopackFileSystemCacheForBuild(defaulttruein Next 16.3.6) instead of settingVERCEL_FORCE_NO_BUILD_CACHE: it only drops the cache that produced stale output and keeps Turbo task caching and the rest of the Vercel build cache.Assumptions
Risks
next buildcompile went from 25s (warm cache) to 59s (cold). Rollback: remove the flag fromapps/cms/next.config.mjs.How to verify
next build./enat 1440px, the "What's inside" section haspadding-topabout 160px,hgroupmargin-bottom80px, card gridgap24px.getComputedStyle(document.documentElement).getPropertyValue('--grid-gap')returns24px.Out of scope